xen: Make all performance counter per-cpu, avoiding the need to update
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 27 Mar 2007 15:35:37 +0000 (16:35 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 27 Mar 2007 15:35:37 +0000 (16:35 +0100)
commitbd776061a1a0e119d997b24be7fbf4bcd7603d95
tree11f24760a1031f992c8e9de18147b05c32a58b12
parent5893fef229ab62a3da1d437f61313f53a208370a
xen: Make all performance counter per-cpu, avoiding the need to update
them with atomic (locked) ops.

Conversion here isn't complete in the sense that many places still use
the old per-CPU accessors (which are now redundant). Since the patch
is already rather big, I'd prefer replacing those in a subsequent
patch.

While doing this, I also converted x86's multicall macros to no longer
require inclusion of asm-offsets.h in the respective C file (on IA64
the use of asm-offsets.h in C sources seems more wide spread, hence
there I rather used IA64_ prefixes for the otherwise conflicting
performance counter indices).

On x86, a few counter increments get moved a little, to avoid
duplicate counting of preempted hypercalls.

Also, a few counters are being added.

IA64 changes only compile-tested, hence somebody doing active IA64
work may want to have a close look at those changes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
21 files changed:
xen/arch/ia64/asm-offsets.c
xen/arch/ia64/xen/hyperprivop.S
xen/arch/ia64/xen/privop_stat.c
xen/arch/ia64/xen/vhpt.c
xen/arch/x86/mm.c
xen/arch/x86/x86_32/asm-offsets.c
xen/arch/x86/x86_32/entry.S
xen/arch/x86/x86_64/asm-offsets.c
xen/arch/x86/x86_64/compat/entry.S
xen/arch/x86/x86_64/entry.S
xen/common/multicall.c
xen/common/perfc.c
xen/include/asm-ia64/linux-xen/asm/asmmacro.h
xen/include/asm-ia64/perfc_defn.h
xen/include/asm-ia64/privop_stat.h
xen/include/asm-x86/multicall.h
xen/include/asm-x86/perfc_defn.h
xen/include/asm-x86/x86_32/asm_defns.h
xen/include/asm-x86/x86_64/asm_defns.h
xen/include/xen/perfc.h
xen/include/xen/perfc_defn.h